package com.vhall.component.entity.room.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 房间和白名单文件的关联表,设置可观看用户范围
 * @TableName room_white_file_relation
 */
@TableName(value ="room_white_file_relation")
@Data
public class RoomWhiteFileRelationEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 房间id
     */
    @TableField(value = "il_id")
    private Integer ilId;

    /**
     * 草稿id-用于进行提前关联
     */
    @TableField(value = "room_draft_record_id")
    private Integer roomDraftRecordId;

    /**
     * 白名单文件名称
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 白名单文件下载url
     */
    @TableField(value = "file_url")
    private String fileUrl;

    /**
     * 创建人 id
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 更新人 id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 
     */
    @TableField(value = "deleted_at")
    private LocalDateTime deletedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}